package com.example.cloud.model.finance;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wt on 2017/4/9.
 */
@Entity(name = "print_config")
@Data
@EqualsAndHashCode(callSuper = false)
public class PrintConfig extends CommonModel {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(name = "unique_code")
    private String uniqueCode;

    @Column(name = "print_name")
    private String printName;

    @Column(name = "is_default", columnDefinition = "INT DEFAULT 0")
    private Integer isDefault;

    @Column(name="account_id")
    private Long accountId;
}
